﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApplication3
{
    public partial class WebForm2 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button4_Click(object sender, EventArgs e)
        {
            Response.Redirect("Login.aspx");
        }
        

        protected void Button5_Click(object sender, EventArgs e)
        {
            if (RadioButton1.Checked == true && RadioButton2.Checked == false && RadioButton3.Checked == false)
            {

                Label2.Text = "Escogiste ir a la Tabla de Productos";

                Response.Redirect("Default.aspx");
            }

            if (RadioButton1.Checked == false && RadioButton2.Checked == true && RadioButton3.Checked == false)
            {

                Label2.Text = "Escogiste ir a la tabla de Empleados";

            }
            if (RadioButton1.Checked == false && RadioButton2.Checked == false && RadioButton3.Checked == true)
            {

                Label2.Text = "Escogiste ir a l Tabla de Ventas";
            }

            if (RadioButton1.Checked == false && RadioButton2.Checked == false && RadioButton3.Checked == false)
            {

                Label2.Text = "ATENCION !!! Deves seleccionar una opcion";
            }

        }
    }
}